package com.zzk.protect.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;

/**
 * 
 * @TableName registration_level
 */
@TableName(value ="registration_level")
public class RegistrationLevel {
    /**
     * Primary key ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * Level code
     */
    @TableField(value = "code")
    private String code;

    /**
     * Level name
     */
    @TableField(value = "name")
    private String name;

    /**
     * Display order
     */
    @TableField(value = "sequence")
    private Integer sequence;

    /**
     * Registration fee
     */
    @TableField(value = "fee")
    private BigDecimal fee;

    /**
     * Registration quota
     */
    @TableField(value = "quota")
    private Integer quota;

    /**
     * Delete flag
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    /**
     * Primary key ID
     */
    public Integer getId() {
        return id;
    }

    /**
     * Primary key ID
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * Level code
     */
    public String getCode() {
        return code;
    }

    /**
     * Level code
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * Level name
     */
    public String getName() {
        return name;
    }

    /**
     * Level name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Display order
     */
    public Integer getSequence() {
        return sequence;
    }

    /**
     * Display order
     */
    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    /**
     * Registration fee
     */
    public BigDecimal getFee() {
        return fee;
    }

    /**
     * Registration fee
     */
    public void setFee(BigDecimal fee) {
        this.fee = fee;
    }

    /**
     * Registration quota
     */
    public Integer getQuota() {
        return quota;
    }

    /**
     * Registration quota
     */
    public void setQuota(Integer quota) {
        this.quota = quota;
    }

    /**
     * Delete flag
     */
    public Integer getIsDeleted() {
        return isDeleted;
    }

    /**
     * Delete flag
     */
    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RegistrationLevel other = (RegistrationLevel) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getSequence() == null ? other.getSequence() == null : this.getSequence().equals(other.getSequence()))
            && (this.getFee() == null ? other.getFee() == null : this.getFee().equals(other.getFee()))
            && (this.getQuota() == null ? other.getQuota() == null : this.getQuota().equals(other.getQuota()))
            && (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getSequence() == null) ? 0 : getSequence().hashCode());
        result = prime * result + ((getFee() == null) ? 0 : getFee().hashCode());
        result = prime * result + ((getQuota() == null) ? 0 : getQuota().hashCode());
        result = prime * result + ((getIsDeleted() == null) ? 0 : getIsDeleted().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", code=").append(code);
        sb.append(", name=").append(name);
        sb.append(", sequence=").append(sequence);
        sb.append(", fee=").append(fee);
        sb.append(", quota=").append(quota);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append("]");
        return sb.toString();
    }
}